.performance-page {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
  background-color: #f0f2f5;
}

.performance-card {
  height: 100%;
  min-height: 360px;
}

.performance-card .ant-card-head {
  min-height: 48px;
  padding: 0 16px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  font-size: 16px;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 2px 2px 0 0;
}

.performance-card .ant-card-body {
  padding: 16px;
  height: calc(100% - 48px);
}

.performance-container {
  display: flex;
  height: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
}

/* 左侧资源列表 */
.performance-sidebar {
  width: 280px;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
  background-color: #f5f5f5;
  padding: 8px;
}

.resource-list {
  display: flex;
  flex-direction: column;
  padding: 2px;
}

/* 右侧详细信息 */
.performance-details {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  position: relative;
  min-height: 400px;
}

/* 详细面板容器 */
.performance-details > div:not(.loading-overlay) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

/* 显示时的样式 */
.performance-details > div[style*="display: block"]:not(.loading-overlay) {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* 资源卡片通用样式 */
.resource-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

/* 资源摘要样式 */
.resource-summary {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
  height: 140px;
}

.resource-summary:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.resource-summary.selected {
  border: 1px solid #1890ff;
}

.resource-title {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  width: 100%;
}

.resource-value {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 4px;
  flex: 1;
  display: flex;
  align-items: center;
}

.resource-subtitle {
  font-size: 12px;
  color: #999;
  margin-bottom: 0;
}

/* 进度条样式 */
.resource-summary .ant-progress {
  margin-top: 4px;
}

.resource-summary .ant-progress-line {
  margin: 0;
} 